//- Copyright (C) 2018-2022 Chatopera Inc, <https://www.chatopera.com>
//- 
//- Licensed under the Apache License, Version 2.0 (the "License");
//- you may not use this file except in compliance with the License.
//- You may obtain a copy of the License at
//- 
//-  http://www.apache.org/licenses/LICENSE-2.0
//- 
//-  Unless required by applicable law or agreed to in writing, software
//- distributed under the License is distributed on an "AS IS" BASIS,
//-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//- See the License for the specific language governing permissions and
//- limitations under the License.
if contactsList && contactsList.content && contactsList.content.size() > 0
    for contacts in contactsList.content
        tr.tdHasContorllor.design-dropable-td.ukefu-contacts
            td(style="width:1px;padding:10px 0px 10px 10px;")
                input(type="checkbox",name="id" class="ctxid" value=contacts.id, id="contacts_#{contacts.id}")
            td.first_td_head
                | #{contacts.name}
            td
                | #{contacts.mobileno}
            td
                | #{contacts.email}
            td
                if contacts.gender && contacts.gender == '1'
                    | 男
                if contacts.gender && contacts.gender == '0'
                    | 女
                if contacts.gender && contacts.gender == '-1'
                    | 未知
            td
                | #{uKeFuDic[contacts.ckind].name}
            td(style="white-space:nowrap;width:1%;" nowrap="nowrap")
                a(href="/apps/contacts/embed/edit.pug?id=" + (contacts.id ? contacts.id : ""), data-toggle="ajax" data-width="950" data-height="600" data-title="编辑联系人信息")
                    i.layui-icon &#xe642; 编辑
